//
//  CLLErrorCode.swift
//  DemoNavBar
//
//  Created by YangHuan on 2019/12/14.
//  Copyright © 2019 YangHuan. All rights reserved.
//

import Foundation
public func getErrorMessage(error: NSError) -> String? {
    switch error.code {
    case 10003:
        return "错误信息"
    default:
        return error.domain
    }
}
